#flutter_gen使用命令

path=""
#echo "例子：./flutter_gen.sh app"
case $1 in
app)
  path="./app_library/pubspec.yaml"
  ;;
core)
  path="./lib_core/pubspec.yaml"
  ;;
ui)
  path="./lib_ui/pubspec.yaml"
  ;;
deeplink)
  path="./lib_deeplink/pubspec.yaml"
  ;;
community)
  path="./business_community/pubspec.yaml"
  ;;
device)
  path="./business_device/pubspec.yaml"
  ;;
scene)
  path="./business_scene/pubspec.yaml"
  ;;
user)
  path="./business_user/pubspec.yaml"
  ;;
*)
  path=""
  ;;
esac


if [ "$path" = "" ]; then
  echo "选择择你需要生成代码的模块，如 ./flutter_gen.sh common"
  exit
fi
echo "$path"
#cd $path
fluttergen -c $path
